package org.feng.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.feng.api.animal.constant.AnimalSexEnum;
import org.feng.api.animal.constant.AnimalTypeEnum;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 动物实体
 *
 * @author feng
 */
@Data
@TableName(value = "fx_animal")
public class Animal implements Serializable {
    @Serial
    private static final long serialVersionUID = -8380311082604886456L;

    /**
     * 主键，自增
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 动物名称
     */
    private String name;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 动物类别
     */
    private AnimalTypeEnum animalType;

    /**
     * 动物性别
     */
    private AnimalSexEnum animalSex;

    /**
     * 备注
     */
    private String remark;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;
}
